package com.example.exam.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.exam.entity.ExamList;
import com.example.exam.mapper.ExamMapper;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
@Log4j2
public class ExamServiceImpl implements ExamService {
    @Autowired
    private ExamMapper examMapper;

    public IPage<ExamList> getExamList(Integer id) {
        return examMapper.getExamList(new Page<>(1, 5), id);
    }


}
